﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ncp.Business;

namespace ncp.Web.uc
{
    public partial class ImgList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BindNews();
        }

        private void BindNews()
        {
            var dicHot = new Dictionary<string, object>();
            dicHot.Add("News_Status", 1);
            dicHot.Add("more", "CHARINDEX('h',News_Flag)<>0");
            var dtHot = NewsInfoBll.GetNewsInfoTable("top 10 *", dicHot, "News_Times,", CommonConst.DB_Name, false);
            repImgNews.DataSource = dtHot;
            repImgNews.DataBind();
        }
    }
}